<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" th:src="@{/common/showdown/showdown.min.js}"></script>
    <script type="text/javascript" th:src="@{/common/jquery/jquery.js}"></script>
</head>
<style>
    body {
        font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
        font-size: 16px;
        line-height: 1.42857143;
        color: #333;
        background-color: #fff;
    }
    ul li {
        line-height: 24px;
    }
    blockquote {
        border-left:#eee solid 5px;
        padding-left:20px;
    }
    code {
        color:#D34B62;
        background: #F9F2F4;
    }
</style>
<body>
    <div>
        <div id="result"></div>

        <div th:id="content" style="display: none" th:text="${content}"></div>
    </div>

</body>
<script type="text/javascript">
    $(document).ready(function () {
        var text =document.getElementById("content").innerText;
        var converter = new showdown.Converter();
        var html = converter.makeHtml(text);
        document.getElementById("result").innerHTML = html;
    });
</script>
</html>